@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./table-edit.scss";

body {
    height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
.padding-0 {
    padding: 0 !important;
}

.el-dialog__body {
    padding: 1px 5px;
    color: #606266;
    font-size: 14px;
}

.el-dialog__header {
    padding: 15px;
    padding-bottom: 10px;
}

.el-dialog__headerbtn {
    top: 5px;
}

.el-dialog.is-fullscreen {
    display: flex;
    flex-direction: column;
    .el-dialog__body {
        flex: auto;
    }
}

label {
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: blue;
    outline: none;
    text-decoration: none;
}

div:focus {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: blue;
    text-decoration: none;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

.warn-content {
    background: rgba(66, 185, 131, 0.1);
    border-radius: 2px;
    padding: 11px;
    word-spacing: 0.05rem;
    a {
        color: #42b983;
        font-weight: 400;
    }
}
// main-container全局样式
.app-container {
    height: 100%;
    width: 100%;
    padding: 6px;
    position: absolute;
    display: flex;
    flex-direction: column;
    .head-container {
        .filter-item {
            display: inline-block;
            vertical-align: middle;
        }
        .el-select  {
          width: 200px;
          height: 30.5px;
          line-height: 30.5px;
        }
      .el-input {
        height: 30.5px;
        line-height: 30.5px;
      }
        // .el-input__icon {
        //     line-height: 31px;
        // }
    }
    .form-container {
        margin-bottom: 2px;
    }
    .body-container {
        display: flex;
        position: relative;
        height: 100%;
        width: 100%;
        overflow: auto;
    }
}
.is-column {
    flex-direction: column;
}
.is-row {
    flex-direction: row;
}

.app-main {
    height: 100%;
}
.el-button + .el-button {
    margin-left: 6px;
}

.el-avatar {
    display: inline-block;
    text-align: center;
    background: #ccc;
    color: #fff;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 16px;
}

.logo-con {
    height: 60px;
    padding: 13px 0px 0px;
    img {
        height: 32px;
        width: 135px;
        display: block;
        //margin: 0 auto;
    }
}

.fontColorWhite {
    color: #ffffff;
}

.el-button .svg-icon + span {
    margin-left: 5px;
}

#app .mobile .sidebar-container {
    z-index: 99999;
}

.el-select {
    vertical-align: bottom;
}

/**改用 没法用size="mini"*/
.el-select .vue-treeselect__control {
    height: 26px;
    line-height: 26px;
    .vue-treeselect__single-value,
    .vue-treeselect__placeholder {
        line-height: 26px;
    }
}

.el-input-group__append .vue-treeselect__control {
    height: 24px;
    line-height: 24px;
    .vue-treeselect__value-container,
    .vue-treeselect__single-value,
    .vue-treeselect__placeholder {
        line-height: 24px;
    }
}

.el-collapse-item__wrap {
    overflow: initial;
}
.el-collapse-item .el-collapse-item__header {
    background-color: #f7f7f7;
    border-radius: 10px;
    padding: 10px;
}

.el-loading-mask {
    position: fixed;
}

.user-custom-field {
    z-index: 999 !important;
}
/*
.el-table {
    // width: fit-content !important;
    .el-table__fixed-right,
    .el-table__fixed {
        height: 100% !important;
    }
    .row-expand-cover .el-table__expand-column .el-table__expand-icon {
        visibility: hidden;
    }
    td {
        // padding: 0;
        .cell {
            padding: 0 6px;
            .el-input__inner {
                border: none;
                padding: 0;
            }
            .el-input--prefix .el-input__inner {
                padding-left: 30px;
            }
            .el-input--suffix .el-input__inner {
                padding-right: 30px;
            }
        }
    }
}*/

.el-popover.myPopover {
    text-align: center;
}
/*
.el-dialog__wrapper {
    display: flex;
    align-items: center;
    .el-dialog {
        margin-top: 0 !important;
    }
}*/

.el-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    .el-tabs__header {
        margin: 0 0 2px;
    }
    .el-tabs__content {
        height: 100%;
        .el-tab-pane {
            height: 100%;
            position: relative;
            overflow-y: auto;
        }
    }
}

.avatar-uploader {
    .el-upload--text {
        width: 100%;
        text-align: left;
        display: block;
        .s-uploader {
            border: 1px dashed #d9d9d9;
            border-radius: 6px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            &:hover {
                border-color: #409eff;
            }
            img {
                max-width: 100%;
                max-height: 100%;
                position: absolute;
                margin: auto;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                display: block;
            }
            .avatar-uploader-icon {
                width: 100%;
                text-align: center;
            }
        }
    }
}

.el-radio-group.rg {
    margin: 5px 5px 5px 0;
    border-radius: 0;
    .el-radio-button .el-radio-button__inner {
        border: 1px solid #dcdfe6;
        border-radius: 0;
        min-width: 80px;
    }
}

.el-form {
    display: initial;
}

.el-form-full {
    height: 100%;
    .el-form-item {
        height: 100%;
        .el-form-item__content {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
    }
}

.el-form-item--mini.el-form-item {
    margin-bottom: 14px;
}

.header-container .el-form-item--mini.el-form-item {
    margin-bottom: 7px;
}

//--- input

.el-input.is-disabled .el-input__inner {
    color: initial;
}
.el-form-item__label {
    padding-right: 6px;
}
.el-select {
    > .el-input {
        .el-input__inner {
            padding-left: 6px;
        }
    }
}
.el-input {
    .el-input__inner {
        padding: 0 6px;
        display: block;
        // &:read-only {
        //     background-color: #e8f4ff;
        // }
    }
}
.el-input--prefix .el-input__inner {
    padding-left: 30px;
}
.el-input--suffix .el-input__inner {
    padding-right: 30px;
}
.el-input-number.is-without-controls .el-input__inner {
    padding: 0 6px;
}
.el-input-number--mini {
    line-height: 28px;
}
.el-date-editor.el-input,
.el-input-number,
.el-select {
    width: 100%;
}

//------
//---按钮颜色
.el-button--primary {
    color: #1890ff;
    background-color: #e8f4ff;
    border-color: #d1e9ff;
    &:hover,
    &:focus,
    &:active {
        background: #1890ff80;
        border-color: #1890ff80;
        color: #ffffff;
    }
}
.el-button--success {
    color: #67c23a;
    background: #f0f9eb;
    border-color: #c2e7b0;
    &:hover,
    &:focus,
    &:active {
        background: #67c23a80;
        border-color: #67c23a80;
        color: #ffffff;
    }
}

.el-button--info {
    color: #909399;
    background: #f4f4f5;
    border-color: #d3d4d6;
    &:hover,
    &:focus,
    &:active {
        background: #90939980;
        border-color: #90939980;
        color: #ffffff;
    }
}

.el-button--warning {
    color: #e6a23c;
    background: #fdf6ec;
    border-color: #f5dab1;
    &:hover,
    &:focus,
    &:active {
        background: #e6a23c80;
        border-color: #e6a23c80;
        color: #ffffff;
    }
}

.el-button--danger {
    color: #f56c6c;
    background: #fef0f0;
    border-color: #fbc4c4;
    &:hover,
    &:focus,
    &:active {
        background: #f56c6c80;
        border-color: #f56c6c80;
        color: #ffffff;
    }
}
//----
//---- 卡片满高度
.el-card.box-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    .el-card__body {
        flex: auto;
    }
}
//---- 走马灯 指示器颜色
.my-carousel .el-carousel__button {
    background-color: #1890ff;
}

// 用于树形
.el-card__body {
    overflow: auto;
}
